package sw.service;

import java.util.List;
import java.util.Map;

import org.apache.poi.ss.usermodel.Workbook;

import sw.model.MAsset;

public interface IWeaknessService {

	/**
	 * 通过项目查找所有的脆弱性
	 * @param projectId
	 * @return 
	 */
	public Map<String, List<MAsset>> showAllWeekness(Integer projectId);
	
	/**
	 * 导出初始化的威胁数据
	 * @param projectId
	 * @return
	 * @throws Exception
	 */
	public Workbook ExportThreat(Integer projectId) throws Exception;
	
	/**
	 * 导入威胁数据
	 * @param filePath
	 * @param projectId
	 * @throws Exception
	 */
	public void importExcel(String filePath, Integer projectId) throws Exception;
}
